package com.hougong.im.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 个人消息表
 * </p>
 *
 * @author lsz
 * @since 2018-08-25
 */
@TableName("person_message")
public class PersonMessage implements Serializable {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 发送者id
     */
	@TableField("from_id")
	private Long fromId;
    /**
     * 接受者id
     */
	@TableField("to_id")
	private Long toId;
    /**
     * 发送的文本内容
     */
	private String content;
    /**
     * 文字颜色RGB e.g.(#FFFFFF)
     */
	@TableField("font_color")
	private String fontColor;
    /**
     * 背景颜色
     */
	@TableField("back_color")
	private String backColor;
    /**
     * 字体大小
     */
	@TableField("font_size")
	private Integer fontSize;
    /**
     * 字体风格
     */
	@TableField("font_family")
	private String fontFamily;
    /**
     * 图片地址，多个逗号
     */
	private String image;
    /**
     * 录音 文件地址
     */
	private String audio;
    /**
     * 录视频文件地址
     */
	private String video;
    /**
     * 0文本1图片2语音录音3视频录像
     */
	private Integer type;
    /**
     * 发生时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 接受者0未读1已读
     */
	@TableField("read_status")
	private Integer readStatus;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getFromId() {
		return fromId;
	}

	public void setFromId(Long fromId) {
		this.fromId = fromId;
	}

	public Long getToId() {
		return toId;
	}

	public void setToId(Long toId) {
		this.toId = toId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getFontColor() {
		return fontColor;
	}

	public void setFontColor(String fontColor) {
		this.fontColor = fontColor;
	}

	public String getBackColor() {
		return backColor;
	}

	public void setBackColor(String backColor) {
		this.backColor = backColor;
	}

	public Integer getFontSize() {
		return fontSize;
	}

	public void setFontSize(Integer fontSize) {
		this.fontSize = fontSize;
	}

	public String getFontFamily() {
		return fontFamily;
	}

	public void setFontFamily(String fontFamily) {
		this.fontFamily = fontFamily;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getAudio() {
		return audio;
	}

	public void setAudio(String audio) {
		this.audio = audio;
	}

	public String getVideo() {
		return video;
	}

	public void setVideo(String video) {
		this.video = video;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getReadStatus() {
		return readStatus;
	}

	public void setReadStatus(Integer readStatus) {
		this.readStatus = readStatus;
	}

	@Override
	public String toString() {
		return "PersonMessage{" +
			"id=" + id +
			", fromId=" + fromId +
			", toId=" + toId +
			", content=" + content +
			", fontColor=" + fontColor +
			", backColor=" + backColor +
			", fontSize=" + fontSize +
			", fontFamily=" + fontFamily +
			", image=" + image +
			", audio=" + audio +
			", video=" + video +
			", type=" + type +
			", creteTime=" + createTime +
			", readStatus=" + readStatus +
			"}";
	}
}
